//
//  YCPopupController.h
//  YCAlertController
//
//  Created by Yochia on 2017/3/9.
//  Copyright © 2017年 Team Brutal. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YCHUDView.h"
#import "YCAlertView.h"

typedef NS_ENUM(NSInteger, YCPopupControllerStyle) {
    YCPopupControllerStyleAlert,
    YCPopupControllerStyleHUD
};

@interface YCPopupController : UIViewController

@property (nonatomic, strong, readonly) YCPopupView * popupView;

@property (nonatomic, readonly) YCPopupControllerStyle preferredStyle;

- (void)setPopupViewWithAlertHandler:(void (^)(YCAlertView * alertView))configurationHandler;

- (void)setPopupViewWithHUDHandler:(void (^)(YCHUDView * hudView))configurationHandler;

- (void)showInViewController:(UIViewController *)viewController animated:(BOOL)animated;

- (void)dismiss:(BOOL)animated;

@end
